//重大活动总结/系统性能/平均处理耗时
exports.averageProcessTime = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 99,
    tmall: 99,
    scpay: 99,
    bank: 99
  }
};

//重大活动总结/系统性能/最大吞吐量
exports.maxThroughput = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 95,
    tmall: 95,
    scpay: 95,
    bank: 95
  }
};

//重大活动总结/系统性能/最大TPS
exports.maxTPS = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 91,
    tmall: 91,
    scpay: 91,
    bank: 91
  }
};

//重大活动总结/各业务线交易占比
exports.busLineRatio = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    tmall: 25,//天猫旗舰店
    scpay: 25,//移动商城
    upay: 25,//统一支付
    bank: 25//银行总对总
  }
};

//重大活动总结/健康度/活动期间健康度/最大值
exports.healthMax = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 99.99,
    upayState: 1,  //1.优, 2.良, 3.中, 4.差
    tmall: 99.99,
    tmallState: 2,  //1.优, 2.良, 3.中, 4.差
    scpay: 99.99,
    scpayState: 3,  //1.优, 2.良, 3.中, 4.差
    bank: 99.99,
    bankState: 4  //1.优, 2.良, 3.中, 4.差
  }
};

//重大活动总结/健康度/活动期间健康度/最小值
exports.healthMin = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 99.99,
    upayState: 2,  //1.优, 2.良, 3.中, 4.差
    tmall: 99.99,
    tmallState: 3,  //1.优, 2.良, 3.中, 4.差
    scpay: 99.99,
    scpayState: 4,  //1.优, 2.良, 3.中, 4.差
    bank: 99.99,
    bankState: 1  //1.优, 2.良, 3.中, 4.差
  }
};

//重大活动总结/健康度/活动期间健康度/平均值
exports.healthAvg = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    upay: 99.99,
    upayState: 3,  //1.优, 2.良, 3.中, 4.差
    tmall: 99.99,
    tmallState: 4,  //1.优, 2.良, 3.中, 4.差
    scpay: 99.99,
    scpayState: 1,  //1.优, 2.良, 3.中, 4.差
    bank: 99.99,
    bankState: 2  //1.优, 2.良, 3.中, 4.差
  }
};

//重大活动总结/交易量与去年同期对比
exports.busVolumeContrastive = {
  state: '10000',
  message: '',
  data: [
    {
      date: '2015/06/13',
      thisYearBusVolume: 249,
      lastYearBusVolume: 259,
      growthRate: '70'
    },
    {
      date: '2015/06/14',
      thisYearBusVolume: 259,
      lastYearBusVolume: 269,
      growthRate: '80'
    },
    {
      date: '2015/06/15',
      thisYearBusVolume: 269,
      lastYearBusVolume: 279,
      growthRate: '90'
    }
  ]
}

//重大活动总结/查询已选择功能模块
exports.savedConfig = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    selectedModules: [111, 112, 113, 114, 22214],//已选中模块ID
    summaryName: '双十一', //总结名字
    activityId: 123,//活动ID
    displaySetting: {  //显示设置
      time: 0, //0：显示 1：不显示
      province: 0 // 0：显示 1：不显示
    },
    layout: ''
  }
};

exports.summaryHealth = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    max: 99,
    min: 95,
    avg: 97
  }
};

//重大活动总结/表单功能模块查询
exports.configModules = {
  state: '10000',
  message: '',
  data: [
    {
      moduleName: '健康度',
      moduleId: 111,
      childModule: [
        {
          moduleName: '活动期间健康度',
          moduleId: 1111,
          childModule: [
            {
              moduleName: '最高值',
              moduleId: 11111
            },
            {
              moduleName: '最低值',
              moduleId: 11112
            },
            {
              moduleName: '平均值',
              moduleId: 11113
            }
          ]
        }
      ]
    },
    {
      moduleName: '对账',
      moduleId: 222,
      childModule: [
        {
          moduleName: '各省对账文件情况',
          moduleId: 2221,
          childModule: [
            {
              moduleName: '统一支付',
              moduleId: 22211
            },
            {
              moduleName: '天猫旗舰店',
              moduleId: 22212
            },
            {
              moduleName: '移动商城',
              moduleId: 22213
            },
            {
              moduleName: '银行总对总',
              moduleId: 22214
            }
          ]
        },
        {
          moduleName: '各省对账差异情况',
          moduleId: 2222,
          childModule: [
            {
              moduleName: '统一支付',
              moduleId: 22221
            },
            {
              moduleName: '天猫旗舰店',
              moduleId: 22222
            },
            {
              moduleName: '移动商城',
              moduleId: 22223
            },
            {
              moduleName: '银行总对总',
              moduleId: 22224
            }
          ]
        }
      ]
    }
  ]
};

//当日系统交易
exports.sysTransaction = {
  state: '10000',
  message: '',
  data: [
    {
      sys: '',//总量
      todayTotalVolumeOfBus: 2322221,  //当日总业务量
      todayTotalAmountOfTrans: 123383919  //当日总交易金额
    }, {
      sys: '天猫',//天猫
      todayTotalVolumeOfBus: 2322221,  //当日总业务量
      todayTotalAmountOfTrans: 123383919  //当日总交易金额
    }, {
      sys: '移动商城',//移动商城
      todayTotalVolumeOfBus: 2322221,  //当日总业务量
      todayTotalAmountOfTrans: 123383919  //当日总交易金额
    }, {
      sys: '银行总对总',//银行总对总
      todayTotalVolumeOfBus: 2322221,  //当日总业务量
      todayTotalAmountOfTrans: 123383919  //当日总交易金额
    }
  ]
};

//系统性能指数
exports.sysPerformance = {
  state: '10000',
  message: '',
  data: {
    processTime: 2.59, //处理耗时 单位 s
    throughput: 1149, //吞吐量 单位个
    tps: 801 //TPS 单位TPS
  }
};

//成功率
exports.successRate = {
  state: '10000',
  message: '',
  data: {
    successRateOfBus: 90.12,   //业务处理成功率
    successRateOfSys: 99.27,   //系统处理成功率
    successRateOfBusState: 1,   //1-true, 2-false是否告警
    successRateOfSysState: 1   //1-true, 2-false是否告警
  }
};

//健康度
exports.health = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {     //实际数据
    tmall: 90.12,  //天猫健康度  保留2位小数，以下不再重复
    scpay: 99.12,  //移动商城健康度
    bank: 90.34,  //总对总健康度
    sumHealth: 99.01,  //总健康度
    sumHealthState: 1  //1.优, 2.良, 3.中, 4.差
  }
};

//分省实时业务量
exports.provinceVolumeOfBus = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    rateState: 1,  //1-true, 2-false是否告警
    provinceData: [    //省份和对应数据
      {
        provinceCode: '',  //省份代码(String型)
        provinceName: '湖北',       //省份名称(String型)
        volume: 2845,  //交易业务量
        volState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '湖南',       //省份名称(String型)
        volume: 2745,  //交易业务量
        volState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '广东',       //省份名称(String型)
        volume: 2645,  //交易业务量
        volState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '广西',       //省份名称(String型)
        volume: 2545,  //交易业务量
        volState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '山东',       //省份名称(String型)
        volume: 2445,  //交易业务量
        volState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '山西',       //省份名称(String型)
        volume: 2345,  //交易业务量
        volState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '河南',       //省份名称(String型)
        volume: 2245,  //交易业务量
        volState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '河北',       //省份名称(String型)
        volume: 2145,  //交易业务量
        volState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '四川',       //省份名称(String型)
        volume: 2045,  //交易业务量
        volState: 2  //1-true, 2-false是否告警
      }
    ]
  }
};

//分省实时交易成功率
exports.provinceSuccessRateOfTrans = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    volState: 1,//1-true, 2-false是否告警
    provinceData: [    //省份和对应数据
      {
        provinceCode: '',  //省份代码(String型)
        provinceName: '湖北',       //省份名称(String型)
        rate: 90.00,  //交易成功率
        rateState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '湖南',       //省份名称(String型)
        rate: 80.00,  //交易成功率
        rateState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '广东',       //省份名称(String型)
        rate: 70.00,  //交易成功率
        rateState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '广西',       //省份名称(String型)
        rate: 60.00,  //交易成功率
        rateState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '山东',       //省份名称(String型)
        rate: 50.00,  //交易成功率
        rateState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '山西',       //省份名称(String型)
        rate: 40.00,  //交易成功率
        rateState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '河南',       //省份名称(String型)
        rate: 30.00,  //交易成功率
        rateState: 2  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '河北',       //省份名称(String型)
        rate: 20.00,  //交易成功率
        rateState: 1  //1-true, 2-false是否告警
      }, {
        provinceCode: '',  //省份代码(String型)
        provinceName: '四川',       //省份名称(String型)
        rate: 10.00,  //交易成功率
        rateState: 2  //1-true, 2-false是否告警
      }
    ]
  }
};

//实时业务量
exports.volumeOfBus = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    tmall: {
      volumeOfBus: [100, 933, 212, 423, 545],   //业务量数据 24个数
      trancAmount: [100.12, 933.55, 312.12, 345.54, 456.88],   ///交易金额数据 24个数
      volumeTime: ['08:00:00', '08:00:05', '08:00:10', '08:00:15', '08:00:20']  ///交易金额时刻
    },
    bank: {
      volumeOfBus: [100, 933, 212, 423, 545],   //业务量数据 24个数
      trancAmount: [100.12, 933.55, 312.12, 345.54, 456.88],   ///交易金额数据 24个数
      volumeTime: ['08:00:00', '08:00:05', '08:00:10', '08:00:15', '08:00:20']  ///交易金额时刻
    },
    scpay: {
      volumeOfBus: [100, 933, 212, 423, 545],   //业务量数据 24个数
      trancAmount: [100.12, 933.55, 312.12, 345.54, 456.88],   ///交易金额数据 24个数
      volumeTime: ['08:00:00', '08:00:05', '08:00:10', '08:00:15', '08:00:20']  ///交易金额时刻
    }
  }
};

//用户充值偏好
exports.topUpPrefer = {
  state: '10000',                   //操作是否成功，10000代表成功
  message: '',     //错误信息 成功返回空字符串，失败则返回错误信息
  data: {
    tmall: {
      rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
      volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123],
      flag: '1'
    },
    bank: {
      rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
      volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123],
      flag: '1'
    },
    scpay: {
      rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
      volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123],
      flag: '1'
    }
  }
};

//当日系统交易
exports.sysTransactionIO = [
  {
    sys: '',//总量
    todayTotalVolumeOfBus: 2322221,  //当日总业务量
    todayTotalAmountOfTrans: 123383919  //当日总交易金额
  }, {
    sys: '天猫',//天猫
    todayTotalVolumeOfBus: 2322221,  //当日总业务量
    todayTotalAmountOfTrans: 123383919  //当日总交易金额
  }, {
    sys: '移动商城',//移动商城
    todayTotalVolumeOfBus: 2322221,  //当日总业务量
    todayTotalAmountOfTrans: 123383919  //当日总交易金额
  }, {
    sys: '银行总对总',//银行总对总
    todayTotalVolumeOfBus: 2322221,  //当日总业务量
    todayTotalAmountOfTrans: 123383919  //当日总交易金额
  }
];

//系统性能指数
exports.sysPerformanceIO = {
  processTime: 2.59, //处理耗时 单位 s
  throughput: 1149, //吞吐量 单位个
  tps: 801 //TPS 单位TPS
};

//成功率
exports.successRateIO = {
  successRateOfBus: 90.12,   //业务处理成功率
  successRateOfSys: 99.27,   //系统处理成功率
  successRateOfBusState: 1,   //1-true, 2-false是否告警
  successRateOfSysState: 1   //1-true, 2-false是否告警
};

//健康度
exports.healthIO = {     //实际数据
  tmall: 90.12,  //天猫健康度  保留2位小数，以下不再重复
  scpay: 99.12,  //移动商城健康度
  bank: 90.34,  //总对总健康度
  sumHealth: 99.01,  //总健康度
  sumHealthState: 1  //1.优, 2.良, 3.中, 4.差
};

//分省实时业务量
exports.provinceVolumeOfBusIO = {
  rateState: 1,  //1-true, 2-false是否告警
  provinceData: [    //省份和对应数据
    {
      provinceCode: '',  //省份代码(String型)
      provinceName: '湖北',       //省份名称(String型)
      volume: 2845,  //交易业务量
      volState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '湖南',       //省份名称(String型)
      volume: 2745,  //交易业务量
      volState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '广东',       //省份名称(String型)
      volume: 2645,  //交易业务量
      volState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '广西',       //省份名称(String型)
      volume: 2545,  //交易业务量
      volState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '山东',       //省份名称(String型)
      volume: 2445,  //交易业务量
      volState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '山西',       //省份名称(String型)
      volume: 2345,  //交易业务量
      volState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '河南',       //省份名称(String型)
      volume: 2245,  //交易业务量
      volState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '河北',       //省份名称(String型)
      volume: 2145,  //交易业务量
      volState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '四川',       //省份名称(String型)
      volume: 2045,  //交易业务量
      volState: 2  //1-true, 2-false是否告警
    }
  ]
};

//分省实时交易成功率
exports.provinceSuccessRateOfTransIO = {
  volState: 1,//1-true, 2-false是否告警
  provinceData: [    //省份和对应数据
    {
      provinceCode: '',  //省份代码(String型)
      provinceName: '湖北',       //省份名称(String型)
      rate: 90.00,  //交易成功率
      rateState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '湖南',       //省份名称(String型)
      rate: 80.00,  //交易成功率
      rateState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '广东',       //省份名称(String型)
      rate: 70.00,  //交易成功率
      rateState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '广西',       //省份名称(String型)
      rate: 60.00,  //交易成功率
      rateState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '山东',       //省份名称(String型)
      rate: 50.00,  //交易成功率
      rateState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '山西',       //省份名称(String型)
      rate: 40.00,  //交易成功率
      rateState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '河南',       //省份名称(String型)
      rate: 30.00,  //交易成功率
      rateState: 2  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '河北',       //省份名称(String型)
      rate: 20.00,  //交易成功率
      rateState: 1  //1-true, 2-false是否告警
    }, {
      provinceCode: '',  //省份代码(String型)
      provinceName: '四川',       //省份名称(String型)
      rate: 10.00,  //交易成功率
      rateState: 2  //1-true, 2-false是否告警
    }
  ]
};

//实时业务量
exports.volumeOfBusIO = {
  tmall: {
    volumeOfBus: 100,   //业务量数据 24个数
    trancAmount: 100.12,   ///交易金额数据 24个数
    volumeTime: '08:00:00'  ///交易金额时刻
  },
  bank: {
    volumeOfBus: 100,   //业务量数据 24个数
    trancAmount: 100.12,   ///交易金额数据 24个数
    volumeTime: '08:00:00'  ///交易金额时刻
  },
  scpay: {
    volumeOfBus: 100,   //业务量数据 24个数
    trancAmount: 100.12,   ///交易金额数据 24个数
    volumeTime: '08:00:00'  ///交易金额时刻
  }
};

//用户充值偏好
exports.topUpPreferIO = {
  tmall: {
    rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
    volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123]
  },
  bank: {
    rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
    volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123]
  },
  scpay: {
    rechargeAmount: ['（0,5]', '(5,20]', '(20,50]', '(50,100]', '(100,150]', '(150,200]', '(200, +]'],
    volumeOfTrans: [1321213, 123123, 123123, 3213123, 2131231, 123123, 123123]
  }
};

//查询系统设计到的数据信息
exports.dataDictionaryDataBase = {
  state: '10000',
  message: '',
  data: [
    {
      schema: 'dataBaseA',
      schemaComment: '数据库A'
    },
    {
      schema: 'dataBaseB',
      schemaComment: '数据库B'
    },
    {
      schema: 'dataBaseC',
      schemaComment: '数据库C'
    }
  ]
}


//数据库表信息查询，支持基于表名字的中英文模糊查询
exports.dataDictionaryTable = {
  state: '10000',
  message: '',
  data: [
    {
      schema: 'dataBaseA',
      table: 'tableA',
      tableComment: '表格A'
    },
    {
      schema: 'dataBaseA',
      table: 'tableB',
      tableComment: '表格B'
    },
    {
      schema: 'dataBaseA',
      table: 'tableC',
      tableComment: '表格C'
    }
  ]
}

//根据数据库和表，查询字段信息
exports.dataDictionaryColumn = {
  state: '10000',
  message: '83022763',
  data: [
    {
      column: 'col1',//字段名称
      columnComment: '列一',//字段描述注释
      columnType: 'chart',//数据类型
      isNullable: true,//是否为空
      isPriKey: true,//是否为主键
      isForKey: true,//是否为外键
      defaultVal: '列一'//默认值，缺省值
    },
    {
      column: 'col2',
      columnComment: '列二',
      columnType: 'chart',
      isNullable: true,
      isPriKey: true,
      isForKey: true,
      defaultVal: '列二'
    },
    {
      column: 'col3',
      columnComment: '列三',
      columnType: 'chart',
      isNullable: true,
      isPriKey: true,
      isForKey: true,
      defaultVal: '列三'
    },
    {
      column: 'col4',
      columnComment: '列四',
      columnType: 'chart',
      isNullable: true,
      isPriKey: true,
      isForKey: true,
      defaultVal: '列四'
    },
  ]
}